home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Communications / pcomm / Source / info.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-12  |  1.6 KB  |  53 lines

  1. /*
  2.  * Display the initial welcome screen (to include all of the proper
  3.  * acknowledgements).  Press any key to continue.
  4.  */
  5.  
  6. #define VERSION    "1.2.10"
  7. #define DATE    "30 Dec 90"
  8.  
  9. #include <stdio.h>
  10. #include <curses.h>
  11.  
  12. void
  13. info(auto_clear)
  14. int auto_clear;
  15. {
  16.     extern int fd;
  17.     WINDOW *w_win, *newwin();
  18.     char buf[80];
  19.                     /* display the welcome screen */
  20.     w_win = newwin(23, 80, 0, 0);
  21.     mvwaddstr(w_win, 3, 18, "PPPPPP    CCCC    OOOO    MM   MM   MM   MM");
  22.     mvwaddstr(w_win, 4, 18, "P    P   C       O    O   M M M M   M M M M");
  23.     mvwaddstr(w_win, 5, 18, "PPPPPP   C       O    O   M  M  M   M  M  M");
  24.     mvwaddstr(w_win, 6, 18, "P        C       O    O   M     M   M     M");
  25.     mvwaddstr(w_win, 7, 18, "P         CCCC    OOOO    M     M   M     M");
  26.  
  27.     sprintf(buf, ">>> Pcomm Version %s <<<", VERSION);
  28.     mvwaddstr(w_win, 10, (80-strlen(buf))/2, buf);
  29.     sprintf(buf, "Release date: %s", DATE);
  30.     mvwaddstr(w_win, 11, (80-strlen(buf))/2, buf);
  31.  
  32.     mvwaddstr(w_win, 13, 8, "Pcomm is a public domain telecommunication program for Unix that");
  33.     mvwaddstr(w_win, 14, 8, "is designed to operate similar to the MSDOS program, ProComm.");
  34.     mvwaddstr(w_win, 15, 8, "ProComm (TM) is copyrighted by Datastorm Technologies, Inc.");
  35.     mvwaddstr(w_win, 19, 45, "Emmet P. Gray");
  36.     mvwaddstr(w_win, 20, 45, "...!uunet!uiucuxc!fthood!egray");
  37.     mvwaddstr(w_win, 21, 45, "fthood!egray@uxc.cso.uiuc.edu");
  38.     wmove(w_win, 22, 79);
  39.     wrefresh(w_win);
  40.                     /* delay so you can read the herald */
  41.     if (auto_clear)
  42.         wait_key(w_win, 5);
  43.     else
  44.         wgetch(w_win);
  45.  
  46.     if (fd == -1) {
  47.         werase(w_win);
  48.         wrefresh(w_win);
  49.     }
  50.     delwin(w_win);
  51.     return;
  52. }
  53.